Raspberry Pi /RP2350 /ADC /CS

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CS

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (EN)EN 0 (TS_EN)TS_EN 0 (START_ONCE)START_ONCE 0 (START_MANY)START_MANY 0 (READY)READY 0 (ERR)ERR 0 (ERR_STICKY)ERR_STICKY 0AINSEL0RROBIN

Description

ADC Control and Status

Fields

EN

Power on ADC and enable its clock. 1 - enabled. 0 - disabled.

TS_EN

Power on temperature sensor. 1 - enabled. 0 - disabled.

START_ONCE

Start a single conversion. Self-clearing. Ignored if start_many is asserted.

START_MANY

Continuously perform conversions whilst this bit is 1. A new conversion will start immediately after the previous finishes.

READY

1 if the ADC is ready to start a new conversion. Implies any previous conversion has completed. 0 whilst conversion in progress.

ERR

The most recent ADC conversion encountered an error; result is undefined or noisy.

ERR_STICKY

Some past ADC conversion encountered an error. Write 1 to clear.

AINSEL

Select analog mux input. Updated automatically in round-robin mode. This is corrected for the package option so only ADC channels which are bonded are available, and in the correct order

RROBIN

Round-robin sampling. 1 bit per channel. Set all bits to 0 to disable. Otherwise, the ADC will cycle through each enabled channel in a round-robin fashion. The first channel to be sampled will be the one currently indicated by AINSEL. AINSEL will be updated after each conversion with the newly-selected channel.

Links

() ()